package com.zhang.client;

import com.zhang.entity.SeckillProduct;
import com.zhang.entity.UserAddress;
import com.zhang.result.RetVal;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import javax.servlet.http.HttpServletRequest;
import java.util.List;


//该远程接口是由哪个微服务去实现
@FeignClient(value = "shop-seckill")
public interface SecKillFeignClient {

    //1.秒杀商品列表
    @GetMapping("/seckill/queryAllSecKillProduct")
    public List<SeckillProduct> queryAllSecKillProduct();

    //2.单个秒杀商品信息
    @GetMapping("/seckill/querySecKillProductById/{skuId}")
    public SeckillProduct querySecKillProductById(@PathVariable Long skuId);

    //6.返回秒杀确认页面需要的数据
    @GetMapping("/seckill/seckillConfirm")
    public RetVal seckillConfirm();
}
